@import "reset";

.container {
    width: 6.4rem;
    margin: 0 auto;
}

.header {
    position: fixed;
    top: 0;
    left: 50%;
    width: 6.4rem;
    transform: translateX(-50%);
    overflow: hidden;
    z-index: 100;
    transition: height .5s ease-in;
}

//头部
header {
    position: relative;
    height: 0.9rem;
    background-color: #fff;

    .search {
        position: absolute;
        top: 50%;
        left: .2rem;
        transform: translateY(-50%);
        width: .3rem;
        height: 0.3rem;
        line-height: 0.3rem;
        text-align: center;

        i {

            font-size: .3rem;
        }
    }

    .logo {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;

        svg {
            display: block;
            width: 1.2rem;
            height: .25rem;

        }
    }

    .cate {
        position: absolute;
        top: 50%;
        right: .8rem;
        transform: translateY(-50%);
        width: .3rem;
        height: 0.3rem;
        line-height: 0.3rem;
        text-align: center;

        i {
            font-size: .3rem;
        }
    }

    .more {
        position: absolute;
        top: 50%;
        right: .2rem;
        transform: translateY(-50%);
        width: .3rem;
        height: 0.3rem;
        line-height: 0.3rem;
        text-align: center;

        i {
            font-size: .3rem;
        }
    }
}

//菜单
.menu {
    display: flex;
    align-items: center;
    height: .62rem;
    background-color: #fff;

    li {
        flex: 1;
        height: 100%;
        text-align: center;

        &.active {
            a {
                color: @caidan;

                span {
                    padding-bottom: .12rem;
                    border-bottom: 0.01rem solid @caidan;
                }
            }
        }

        a {
            display: block;
            height: 100%;

            span {
                font-size: .2rem;
                font-weight: 700;
                line-height: .52rem;

                &:hover {
                    color: @caidan;
                    padding-bottom: .12rem;
                    border-bottom: 0.01rem solid @caidan;
                }
            }
        }
    }
}

//轮播图
.slide {
    margin-top: 1.52rem;
    height: 2.7rem;
    padding-bottom: .1rem;
    background-color: #fff;

    .swiper {
        width: 100%;
        height: 2.7rem;

        img {
            height: 2.7rem;
        }
    }
}

.swiper {

    position: relative;
    width: 100%;
    height: 1.7rem;
}

.swiper-pagination {
    position: absolute;
    // top: 0;
}

//服务
.fuwu {
    display: flex;
    align-items: center;
    text-align: center;
    height: .55rem;

    li {
        flex: 1;

        a {
            display: flex;
            height: .55rem;
            align-items: center;
            justify-content: center;

            i {
                font-size: .2rem;
            }
        }
    }
}

//推荐产品
.promotion {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2rem;
    text-align: center;
    background-color: #fff;
    margin-bottom: .15rem;

    li {
        flex: 1;
        padding-bottom: .2rem;

        a {
            display: block;
            height: 100%;

            p {
                color: #333;
            }
        }
    }
}

//新品推荐
.new {
    display: flex;
    height: 3.9rem;
    overflow: hidden;

    div {
        flex: 1;
    }

    .new-right {
        display: flex;
        flex-direction: column;

        a {
            flex: 1;

            img {
                width: 100%;
                height: 1.95rem;
            }

            &:first-child {
                margin-bottom: .05rem;
            }
        }
    }

}

//智能手机
.pro {
    &.sound {
        .pro-title {
            i {
                height: .04rem;
                background-color: orange;
            }
        }

        .pro-four {
            margin-top: .1rem;
            display: flex;
            flex-wrap: wrap;
            overflow: hidden;

            a {
                flex: 0 0 50%;
                height: 3.2rem;

                &:nth-child(2) {
                    background-color: orangered;
                }

                &:nth-child(3) {
                    background-color: #6e69cb;
                }

                h3 {
                    padding: .3rem .9rem .1rem .3rem;
                    color: #fff;
                    font-size: .3rem;
                    font-weight: 400;
                }

                p {
                    position: relative;
                    padding: .01rem .9rem .2rem .3rem;
                    color: rgb(214, 209, 209);
                    font-size: .2rem;
                    font-weight: 400;

                    &::after {
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: .3rem;
                        width: .4rem;
                        height: .03rem;
                        background-color: #fff;
                    }
                }

                div {
                    padding: .3rem .9rem .1rem .3rem;
                    font-size: .3rem;
                    font-weight: 700;
                    color: rgb(214, 209, 209);
                }
            }
        }


    }

    &.atach {
        .pro-title {
            i {
                height: .04rem;
                background-color: #6e69cb;
            }
        }

        .pro-four {
            margin-top: .1rem;
            display: flex;
            flex-wrap: wrap;
            overflow: hidden;

            a {
                flex: 0 0 50%;
                height: 3.2rem;

                &:nth-child(2) {
                    background-color: #4cb8c4;
                }

                &:nth-child(3) {
                    background-color: #ffb040;
                }

                h3 {
                    padding: .3rem .9rem .1rem .3rem;
                    color: #fff;
                    font-size: .3rem;
                    font-weight: 400;
                }

                p {
                    position: relative;
                    padding: .01rem .9rem .2rem .3rem;
                    color: rgb(214, 209, 209);
                    font-size: .2rem;
                    font-weight: 400;

                    &::after {
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: .3rem;
                        width: .4rem;
                        height: .03rem;
                        background-color: #fff;
                    }
                }

                div {
                    padding: .3rem .9rem .1rem .3rem;
                    font-size: .3rem;
                    font-weight: 700;
                    color: rgb(214, 209, 209);
                }
            }
        }


    }

    &.zhou {
        .pro-title {
            i {
                height: .04rem;
                background-color: #69cb76;
            }
        }

        .pro-four {
            margin-top: .1rem;
            display: flex;
            flex-wrap: wrap;
            overflow: hidden;

            a {
                flex: 0 0 50%;
                height: 3.2rem;

                &:nth-child(2) {
                    background-color: #4cb8c4;
                }

                &:nth-child(3) {
                    background-color: #ffb040;
                }

                h3 {
                    padding: .3rem .9rem .1rem .3rem;
                    color: #fff;
                    font-size: .3rem;
                    font-weight: 400;
                }

                p {
                    position: relative;
                    padding: .01rem .9rem .2rem .3rem;
                    color: rgb(214, 209, 209);
                    font-size: .2rem;
                    font-weight: 400;

                    &::after {
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: .3rem;
                        width: .4rem;
                        height: .03rem;
                        background-color: #fff;
                    }
                }

                div {
                    padding: .3rem .9rem .1rem .3rem;
                    font-size: .3rem;
                    font-weight: 700;
                    color: rgb(214, 209, 209);
                }
            }
        }


    }

    .pro-title {
        position: relative;
        font-size: .3rem;
        font-weight: 700;
        text-align: center;
        height: 100%;
        line-height: .81rem;
        color: #000000;

        i {
            position: absolute;
            bottom: .0rem;
            left: 50%;
            transform: translateX(-50%);
            width: .5rem;
            height: .05rem;
            background-color: @caidan;
        }
    }

    &-pros {

        display: flex;
        flex-wrap: wrap;


        li {
            margin-top: .05rem;
            flex: 0 0 49%;
            background-color: #fff;
            margin-right: 1%;

            &:nth-child(2n) {
                margin-right: 0;
            }

            a {
                display: flex;
                flex-direction: column;

                .imgg {
                    flex: 0 0 2.6rem;

                    img {
                        display: block;
                        height: 2.6rem;
                        margin: 0 auto;
                    }
                }

                h2 {
                    flex: 0 0 .45rem;
                    text-align: center;
                    line-height: .45rem;
                }

                .feature {
                    flex: 0 0 .3rem;
                    // text-align: center;
                    line-height: .3rem;
                    border: 1px solid red;
                    margin: 0 .3rem;
                    font-size: .2rem;
                    color: red;

                    i {
                        display: inline-block;
                        width: .6rem;
                        background-color: red;
                        text-align: center;
                        font-weight: 700;
                        color: #fff;
                        margin-right: .1rem;
                    }
                }

                .price {
                    flex: 0 0 .7rem;
                    line-height: .7rem;
                    text-align: center;
                    font-size: .25rem;
                    color: red;

                    span {
                        font-size: .2rem;
                    }

                    .last {
                        font-size: .2rem;
                        color: #999;
                        text-decoration: line-through;
                    }
                }
            }
        }
    }
}

//魅族声学
.success {
    &.flyme {
        ul {
            li {
                a {

                    .info {
                        text-align: center;
                        color: #000000;
                        font-size: .2rem;
                    }
                }
            }
        }
    }

    &.vie {
        ul {
            li {
                a {


                    .info {
                        position: relative;
                        font-size: .17rem;

                        i {
                            position: absolute;
                            top: .08rem;
                            font-size: .3rem;
                        }
                    }


                }
            }
        }
    }


    .pro-title {
        position: relative;
        font-size: .3rem;
        font-weight: 700;
        text-align: center;
        height: 100%;
        line-height: .81rem;
        color: #000000;

        i {
            position: absolute;
            bottom: .0rem;
            left: 50%;
            transform: translateX(-50%);
            width: .5rem;
            height: .04rem;
            background-color: @caidan;
        }
    }

    ul {
        margin-top: .1rem;
        display: flex;
        flex-wrap: wrap;

        li {
            // background-color: #fff;
            // flex: 0 0 50%;
            margin-top: .05rem;
            flex: 0 0 49%;
            background-color: #fff;
            margin-right: 1%;

            &:nth-child(2n) {
                margin-right: 0;
            }

            a {

                height: 3.2rem;

                .figg {
                    img {
                        width: 100%;
                        height: 1.5rem;
                    }
                }

                .infoo {
                    padding: .1rem .2rem;
                    display: inline-block;
                    width: 2rem;
                    height: .3rem;

                    img {
                        width: .3rem;
                        height: .3rem;
                        border-radius: 50%;
                    }

                    span {
                        color: #000000;
                    }
                }

                .info {
                    padding: .1rem .2rem;
                    font-size: .15rem;
                    color: #333;
                }

                .tagss {
                    font-size: .1rem;
                    padding: 0 0 .4rem .2rem;

                }
            }
        }
    }
}

//返回顶部
.backg {
    height: 1rem;
    line-height: 1rem;
    text-align: center;
    font-size: .25rem;

    a {
        display: block;
        cursor: pointer;
    }
}


//底部
.footer {
    display: flex;
    height: 1.3rem;
    background: #fff;


    .left {
        flex: 0 0 50%;
        height: .6rem;
        text-align: center;
        padding: .3rem .4rem;


        a {
            display: block;
            width: 2.5rem;
            background-color: @caidan;
            height: .6rem;
            line-height: .6rem;
            border-radius: .6rem;
            color: #fff;
            font-size: .2rem;

            i {
                font-size: .2rem;
                padding-right: .05rem;
            }
        }
    }

    .right {
        flex: 0 0 50%;
        height: .6rem;
        text-align: center;
        padding: 0.3rem .1rem;

        a {
            display: block;
            width: 2.5rem;
            background-color: @caidan ;
            height: .6rem;
            line-height: .6rem;
            border-radius: .6rem;
            color: #fff;
            font-size: .2rem;

            i {
                font-size: .2rem;
                padding-right: .05rem;
            }
        }
    }
}